id stringlengths 15 54 | text stringlengths 3 133k | title stringclasses 1
value |
|---|---|---|
teleopanel/packagexml_7.txt | # User | |
teleopanel/layouthtml1_67.txt | When you add widgets to a layout, the layout process works as follows: | |
teleopanel/packagexml_72.txt | * ` <license> ` \- The software license(s) (e.g. GPL, BSD, ASL) under which the code is released. | |
teleopanel/layouthtml_6.txt | ## Layout Widgets | |
teleopanel/differenceinbuilddep_21.txt | Aren't rclcpp and std_msgs required at build time? | |
teleopanel/differenceinbuilddep_10.txt | edit | |
teleopanel/layouthtml_37.txt | ## Custom Widgets In Layouts | |
teleopanel/layouthtml1_46.txt | * A [ QHBoxLayout ](qhboxlayout.html) lays out widgets in a horizontal row, from left to right (or right to left for right-to-left languages). | |
teleopanel/layouthtml_28.txt | When you use a layout, you must insert each child both into its parent widget
(done in the constructor) and into its layout (typically done with a function
called addWidget()). This way, you can give layout parameters for each widget,
specifying properties like alignment, stretch, and placement. | |
teleopanel/layouthtml1_0.txt | [ Home ](index.html) | |
teleopanel/packagexml_73.txt | As an example, here is package manifest for a fictional package called
_foo_core_ . | |
teleopanel/differenceinbuilddep_14.txt | [ 
](/users/2517/jeffrey-kane-johnson/) | |
teleopanel/layouthtml_45.txt | If you are making a one-of-a-kind special layout, you can also make a custom
widget as described above. Reimplement [ QWidget::resizeEvent
](qwidget.html#resizeEvent) () to calculate the required distribution of sizes
and call [ setGeometry ](qwidget.html#setGeometry) () on each child. | |
teleopanel/packagexml_47.txt | A more realistic example that specifies build, exec, test, and doc
dependencies could look as follows. | |
teleopanel/layouthtml1_38.txt | Abstract item that a QLayout manipulates
[ QSizePolicy ](qsizepolicy.html) | |
teleopanel/differenceinbuilddep_67.txt | [ ![ gravatar image]() ]() [ ]() ( 2024-04-18 17:53:56 -0500 ) edit | |
teleopanel/packagexml_33.txt | * **Execution Dependencies** specify which packages are needed to run code in this package. This is the case when you depend on shared libraries in this package (especially when these packages are declared as (CATKIN_)DEPENDS in _catkin_package()_ in CMake). | |
teleopanel/packagexml_35.txt | * **Build Tool Dependencies** specify build system tools which this package needs to build itself. Typically the only build tool needed is catkin. In a cross-compilation scenario build tool dependencies are for the architecture on which the compilation is performed. | |
teleopanel/layouthtml_22.txt | If we have three widgets laid out using a [ QHBox ](qhbox.html) with no
stretch factors set we will get a layout like this: | |
teleopanel/packagexml_79.txt | * **Run Dependencies** specify which packages are needed to run code in this package, or build libraries against this package. This is the case when you depend on shared libraries or transitively include their headers in public headers in this package (especially when these packages are declared as (CATKIN_)DEPENDS i... | |
teleopanel/differenceinbuilddep_7.txt | [ ALL ](/questions/scope:all/sort:activity-desc/page:1/) [ UNANSWERED
](/questions/scope:unanswered/sort:answers-asc/page:1/) | |
teleopanel/layouthtml_30.txt |
[QWidget](qwidget.html) *main = new [QWidget](qwidget.html);
// make a 1x1 grid; it will auto-expand
[QGridLayout](qgridlayout.html) *grid = new [QGridLayout](qgridlayout.html)( main, 1, 1 );
// add the first four widgets with (row, column) addressing
grid->[a... | |
teleopanel/packagexml_90.txt | More details on dependencies can be found [ here
](/catkin/conceptual_overview#Dependency_Management) . | |
teleopanel/layouthtml1_115.txt | © 2013 Digia Plc and/or its subsidiaries. Documentation contributions
included herein are the copyrights of their respective owners. | |
teleopanel/packagexml_87.txt |
<package>
<name>foo_core</name>
<version>1.2.4</version>
<description>
This package provides foo capability.
</description>
<maintainer email="ivana@willowgarage.com">Ivana Bildbotz</maintainer>
<license>BSD</license>
<buildtool_depend>catkin</buildto... | |
teleopanel/panelplugintutorialh_31.txt | # Related Topics
* [ Documentation overview ](index.html)
| |
teleopanel/layouthtml1_77.txt | * Reimplement [ QWidget::sizeHint ](qwidget.html#sizeHint-prop) () to return the preferred size of the widget.
* Reimplement [ QWidget::minimumSizeHint ](qwidget.html#minimumSizeHint-prop) () to return the smallest size the widget can have.
* Call [ QWidget::setSizePolicy ](qwidget.html#sizePolicy-prop) () to s... | |
teleopanel/packagexml_14.txt | ## Format 2 (Recommended) | |
teleopanel/panelplugintutorialh_15.txt |
float linear_velocity_; // In m/s
float angular_velocity_; // In radians/s
float linear_scale_; // In m/s
float angular_scale_; // In radians/s
};
| |
teleopanel/layouthtml1_3.txt | * [ Qt 4.8 ](index.html)
* [ ALL VERSIONS ](http://qt-project.org/doc/) | |
teleopanel/differenceinbuilddep_16.txt | [ **updated 2020-03-25 10:56:52 -0500 ** ](/questions/347516/revisions/) | |
teleopanel/layouthtml_29.txt | The following code makes a grid like the one above, with a couple of
improvements: | |
teleopanel/packagexml_51.txt | It is often convenient to group multiple packages as a single logical package.
This can be accomplished through **metapackages** . A metapackage is a normal
package with the following export tag in the package.xml: | |
teleopanel/packagexml_39.txt | * ` <build_depend> ` | |
teleopanel/layouthtml_26.txt | ## [ QLayout ](qlayout.html) | |
teleopanel/layouthtml1_1.txt | [ Qt Reference Documentation ](index.html) | |
teleopanel/differenceinbuilddep_32.txt | Thanks, [ @marguedas ](/users/19307/marguedas/) and [ @gvdhoorn
](/users/5184/gvdhoorn/) , that clarifies it for me. I also realize now that
my interpretation of the documentation for package format 2 was not correct. I
edited the question to reflect that. | |
teleopanel/layouthtml1_61.txt |
[QWidget](qwidget.html) *window = new [QWidget](qwidget.html);
[QPushButton](qpushbutton.html) *button1 = new [QPushButton](qpushbutton.html)("One");
[QLineEdit](qlineedit.html) *lineEdit1 = new [QLineEdit](qlineedit.html)();
[QPushButton](qpushbutton.html) *button2 = new [... | |
teleopanel/layouthtml1_92.txt | To write your own layout class, you must define the following: | |
teleopanel/differenceinbuilddep_18.txt |
<exec_depend>rclcpp</exec_depend>
<exec_depend>std_msgs</exec_depend>
| |
teleopanel/layouthtml1_105.txt |
void CardLayout::addItem([QLayoutItem](qlayoutitem.html) *item)
{
list.append(item);
} | |
teleopanel/packagexml_16.txt | The full documentation for format 2 can be found in the [ catkin API docs
](https://docs.ros.org/melodic/api/catkin/html/howto/format2/index.html) .
More information can be found in [ REP 140 -- Package Manifest Format Two
Specification ](http://www.ros.org/reps/rep-0140.html) . | |
teleopanel/packagexml_83.txt | * ` <build_depend> ` | |
teleopanel/packagexml_107.txt | * * * | |
teleopanel/packagexml_99.txt | [ https://groups.google.com/forum/#!msg/ros-sig-buildsystem/mn-
VCkl2OHk/dUsHBBjyK30J ](https://groups.google.com/forum/#!msg/ros-sig-
buildsystem/mn-VCkl2OHk/dUsHBBjyK30J) | |
teleopanel/layouthtml1_108.txt | The ` setGeometry() ` function actually performs the layout. The rectangle
supplied as an argument does not include ` margin() ` . If relevant, use `
spacing() ` as the distance between items. | |
teleopanel/layouthtml1_43.txt | Lines up widgets vertically
[ QWidgetItem ](qwidgetitem.html) | |
teleopanel/packagexml_17.txt | ### Basic Structure | |
teleopanel/differenceinbuilddep_48.txt | ## Stats | |
teleopanel/layouthtml1_9.txt | ## API Lookup | |
teleopanel/differenceinbuilddep_49.txt | Asked: ** 2020-03-25 10:03:13 -0500 ** | |
teleopanel/layouthtml1_48.txt | * A [ QVBoxLayout ](qvboxlayout.html) lays out widgets in a vertical column, from top to bottom. | |
teleopanel/differenceinbuilddep_60.txt | [ rclpy fails to run on arm64 after cross-compilation
](/question/329161/rclpy-fails-to-run-on-arm64-after-cross-compilation/) | |
teleopanel/differenceinbuilddep_51.txt | Last updated: **Mar 25 '20** | |
teleopanel/layouthtml_35.txt | If the built-in layout classes are not sufficient, you can define your own.
You must make a subclass of [ QLayout ](qlayout.html) that handles resizing
and size calculations, as well as a subclass of [ QGLayoutIterator
](qglayoutiterator.html) to iterate over your layout class. | |
teleopanel/layouthtml_31.txt | You can insert layouts inside a layout by giving the parent layout as a
parameter in the constructor. | |
teleopanel/layouthtml1_35.txt | Group box frame with a title
[ QHBoxLayout ](qhboxlayout.html) | |
teleopanel/packagexml_42.txt | * ` <test_depend> ` | |
teleopanel/layouthtml1_69.txt | ### Stretch Factors | |
teleopanel/layouthtml1_41.txt | Stack of widgets where only one widget is visible at a time
[ QStackedWidget ](qstackedwidget.html) | |
teleopanel/packagexml_88.txt | A more realistic example that specifies build, runtime, and test dependencies
could look as follows. | |
teleopanel/layouthtml_12.txt | * A [ QGrid ](qgrid.html) lays out its child widgets in a two dimensional grid. You can specify how many columns the grid has, and it is populated left to right, beginning a new row when the previous row is full. The grid is fixed; the child widgets will not flow to other rows as the widget is resized. | |
teleopanel/layouthtml1_50.txt | * A [ QGridLayout ](qgridlayout.html) lays out widgets in a two-dimensional grid. Widgets can occupy multiple cells. | |
teleopanel/layouthtml_11.txt |  | |
teleopanel/differenceinbuilddep_50.txt | Seen: **1,778 times** | |
teleopanel/differenceinbuilddep_30.txt | Afaict, it should probably be ` depend ` instead of ` exec_depend ` . | |
teleopanel/differenceinbuilddep_6.txt | [ __ ](/questions/) | | |
teleopanel/differenceinbuilddep_47.txt | [ subscribe to rss feed ](/feeds/question/347516/ "subscribe to the rss feed") | |
teleopanel/differenceinbuilddep_4.txt | [ tags ](/tags/) [ users ](/users/) [ badges ](/badges/) | |
teleopanel/panelplugintutorialh_32.txt | # This Page
* [ Show Source ](_sources/panel_plugin_tutorial.txt)
| |
teleopanel/layouthtml_1.txt | The Qt layout system provides a simple and powerful way of specifying the
layout of child widgets. | |
teleopanel/layouthtml_0.txt | [ Home ](index.html) | [ All Classes ](classes.html) | [ Main Classes
](mainclasses.html) | [ Annotated ](annotated.html) | [ Grouped Classes
](groups.html) | [ Functions ](functions.html) | 
---|---
# Layout Classes | |
teleopanel/packagexml_44.txt | * ` <doc_depend> ` | |
teleopanel/layouthtml_17.txt | ## [ QLayout ](qlayout.html) | |
teleopanel/layouthtml_18.txt | When you add widgets to a layout the layout process works as follows: | |
teleopanel/layouthtml_15.txt |
[QGrid](qgrid.html) *mainGrid = new [QGrid](qgrid.html)( 2 ); // a 2 x n grid
new [QLabel](qlabel.html)( "One", mainGrid );
new [QLabel](qlabel.html)( "Two", mainGrid );
new [QLabel](qlabel.html)( "Three", mainGrid );
new [QLabel](qlabel.html)( "Four", mainGrid );
... | |
teleopanel/layouthtml1_37.txt | The base class of geometry managers
[ QLayoutItem ](qlayoutitem.html) | |
teleopanel/layouthtml1_10.txt | * [ Class index ](classes.html)
* [ Function index ](functions.html)
* [ Modules ](modules.html)
* [ Namespaces ](namespaces.html)
* [ Global Declarations ](qtglobal.html)
* [ QML elements ](qdeclarativeelements.html) | |
teleopanel/differenceinbuilddep_43.txt | add a comment | |
teleopanel/packagexml_108.txt | [  ](https://www.openrobotics.org/) | |
teleopanel/layouthtml1_39.txt | Layout attribute describing horizontal and vertical resizing policy
[ QSpacerItem ](qspaceritem.html) | |
teleopanel/layouthtml1_7.txt | All | API | Articles | Examples | |
teleopanel/layouthtml_14.txt | The grid shown above can be produced by the following code: | |
teleopanel/packagexml_102.txt | * ` <url> ` \- A URL for information on the package, typically a wiki page on ros.org. | |
teleopanel/layouthtml1_81.txt | For further guidance when implementing these functions, see the _Qt Quarterly_
article [ Trading Height for Width ](http://doc.qt.nokia.com/qq/qq04-height-
for-width.html) . | |
teleopanel/layouthtml1_53.txt |  | |
teleopanel/layouthtml1_104.txt | ` addItem() ` implements the default placement strategy for layout items. This
function must be implemented. It is used by [ QLayout::add ](qlayout-
qt3.html#add) (), by the [ QLayout ](qlayout.html) constructor that takes a
layout as parent. If your layout has advanced placement options that require
parameters, you mu... | |
teleopanel/layouthtml1_17.txt | [ Widgets and Layouts ](widgets-and-layouts.html) [ Styles ](style-
reference.html) | |
teleopanel/layouthtml1_96.txt |
#ifndef CARD_H
#define CARD_H
#include <QtGui>
#include <QList>
class CardLayout : public [QLayout](qlayout.html)
{
public:
CardLayout([QWidget](qwidget.html) *parent, int dist): [QLayout](qlayout.html)(parent, 0, dist) {}
CardLayout([QLayout](qla... | |
teleopanel/differenceinbuilddep_46.txt | 1 follower | |
teleopanel/differenceinbuilddep_65.txt | [ Powered by Askbot version 0.10.2 ](http://askbot.com) | |
teleopanel/differenceinbuilddep_35.txt | ## 1 Answer | |
teleopanel/layouthtml1_45.txt | The easiest way to give your widgets a good layout is to use the built-in
layout managers: [ QHBoxLayout ](qhboxlayout.html) , [ QVBoxLayout
](qvboxlayout.html) , [ QGridLayout ](qgridlayout.html) , and [ QFormLayout
](qformlayout.html) . These classes inherit from [ QLayout ](qlayout.html) ,
which in turn derives from... | |
teleopanel/layouthtml1_58.txt |
[QWidget](qwidget.html) *window = new [QWidget](qwidget.html);
[QPushButton](qpushbutton.html) *button1 = new [QPushButton](qpushbutton.html)("One");
[QPushButton](qpushbutton.html) *button2 = new [QPushButton](qpushbutton.html)("Two");
[QPushButton](qpushbutton.html) *butt... | |
teleopanel/panelplugintutorialh_2.txt | The Plugin Code ¶
The code for TeleopPanel is in these files: [ src/teleop_panel.h
](https://github.com/ros-visualization/visualization_tutorials/tree/groovy-
devel/rviz_plugin_tutorials/src/teleop_panel.h) , [ src/teleop_panel.cpp
](https://github.com/ros-visualization/visualization_tutorials/tree/groovy-
devel/r... | |
teleopanel/packagexml_76.txt | The package manifest with minimal tags does not specify any dependencies on
other packages. Packages can have four types of dependencies: | |
teleopanel/layouthtml_10.txt | * A [ QVBox ](qvbox.html) lays out its child widgets in a vertical column, top to bottom. | |
teleopanel/differenceinbuilddep_27.txt | [ 
](/users/19307/marguedas/) [ marguedas ](/users/19307/marguedas/) (
2020-03-25 10:31:35 -0500 ) edit | |
teleopanel/packagexml_69.txt | * ` <version> ` \- The version number of the package (required to be 3 dot-separated integers) | |
teleopanel/layouthtml_24.txt | If we apply stretch factors to each widget, they will be laid out in
proportion (but never less than their minimum size hint), e.g. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.