Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How can we improve the start time of Qml application?

    Unsolved
    5
    0 Votes
    5 Posts
    467 Views
    jeremy_kJ
    @JKSH said in How can we improve the start time of Qml application?: @jeremy_k said in How can we improve the start time of Qml application?: @J-Hilk said in How can we improve the start time of Qml application?: @balakrishnarao-ms move any and all logic to c++ only do gui stuff in qml Use Loaders and only load what you're currently want to show Use Dynamic/asynch loading for loaders and Images Use Creator's QML profiler to determine where time is spent. Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html Port to QSkinny!
  • QScrollArea does not create a QScrollBar

    Moved Solved
    13
    0 Votes
    13 Posts
    852 Views
    I
    @SGaist Solved! Apparently on MacOs it doesn't work until you style it. Something like this will work: QScrollBar:vertical { border: none; background: transparent; width: 14px; margin: 15px 0 15px 0; border-radius: 0px; }
  • movePosition API does not work for large value of row (>17k)

    Unsolved
    2
    0 Votes
    2 Posts
    172 Views
    SGaistS
    Hi and welcome to devnet, Did you already check the release notes to see if something changed with these classes ? If you have a minimal example showing that, you may also have found a regression. So the next step would be to check the bug report system to see if there's something related.
  • QQuickWindow does not change color in the first frame

    Unsolved
    5
    0 Votes
    5 Posts
    502 Views
    skalexS
    I created a bug report as it seems like a Windows-scpecific-implementation bug. I tried that on Android and it works fine there.
  • How to highlight multiline text on a QTextEdit?

    Unsolved
    5
    0 Votes
    5 Posts
    903 Views
    C
    For the sake of availability and saving someone's time, I'll share my solution again here. There's a very good and detailed Syntax Highlighter Example in the Qt Documentation, with a section that explains how to deal with multiline comments explained in Highlighter class implementation section. Here's my own extraction of it: the multiline comment needs special care due to the design of the QSyntaxHighlighter class. After a QSyntaxHighlighter object is created, its highlightBlock() function will be called automatically whenever it is necessary by the rich text engine, highlighting the given text block. The problem appears when a comment spans several text blocks. We will take a closer look at how this problem can be solved when reviewing the implementation of the Highlighter::highlightBlock() function. At this point we only specify the multiline comment's color. setCurrentBlockState(0); To deal with constructs that can span several text blocks (like the C++ multiline comment), it is necessary to know the end state of the previous text block (e.g. "in comment"). Inside your highlightBlock() implementation you can query the end state of the previous text block using the QSyntaxHighlighter::previousBlockState() function. After parsing the block you can save the last state using QSyntaxHighlighter::setCurrentBlockState(). The previousBlockState() function return an int value. If no state is set, the returned value is -1. You can designate any other value to identify any given state using the setCurrentBlockState() function. Once the state is set, the QTextBlock keeps that value until it is set again or until the corresponding paragraph of text is deleted. In this example we have chosen to use 0 to represent the "not in comment" state, and 1 for the "in comment" state. When the stored syntax highlighting rules are applied we initialize the current block state to 0. int startIndex = 0; if (previousBlockState() != 1) startIndex = text.indexOf(commentStartExpression); If the previous block state was "in comment" (previousBlockState() == 1), we start the search for an end expression at the beginning of the text block. If the previousBlockState() returns 0, we start the search at the location of the first occurrence of a start expression. while (startIndex >= 0) { QRegularExpressionMatch match = commentEndExpression.match(text, startIndex); int endIndex = match.capturedStart(); int commentLength = 0; if (endIndex == -1) { setCurrentBlockState(1); commentLength = text.length() - startIndex; } else { commentLength = endIndex - startIndex + match.capturedLength(); } setFormat(startIndex, commentLength, multiLineCommentFormat); startIndex = text.indexOf(commentStartExpression, startIndex + commentLength); } When an end expression is found, we calculate the length of the comment and apply the multiline comment format. Then we search for the next occurrence of the start expression and repeat the process. If no end expression can be found in the current text block we set the current block state to 1, i.e. "in comment". TL;DR: QSyntaxHighlighter only formats one text block at a time, a multiline comment is formed of several ones, hence why you are only able to format single line comments. Based on that, I changed MyHtmlHighlighter as follows: class MyHtmlHighlighter : public QSyntaxHighlighter { public: MyHtmlHighlighter(QWidget* parent) : QSyntaxHighlighter(parent) { commentFormat.setForeground(QColor("#29ff3d")); commentFormat.setFontItalic(true); commentStartExpression = QRegularExpression(QStringLiteral("/\\*")); commentEndExpression = QRegularExpression(QStringLiteral("\\*/")); } protected: void highlightBlock(const QString& text) override { //useless for multiline comment formatting for (const HighlightingRule& rule : highlightingRules) { QRegularExpressionMatchIterator matchIterator = rule.pattern.globalMatch(text); while (matchIterator.hasNext()) { QRegularExpressionMatch match = matchIterator.next(); setFormat(match.capturedStart(), match.capturedLength(), rule.format); } } //this is where multiline comments processing starts setCurrentBlockState(0); int startIndex = 0; if (previousBlockState() != 1) startIndex = text.indexOf(commentStartExpression); while (startIndex >= 0) { QRegularExpressionMatch match = commentEndExpression.match(text, startIndex); int endIndex = match.capturedStart(); int commentLength = 0; if (endIndex == -1) { setCurrentBlockState(1); commentLength = text.length() - startIndex; } else { commentLength = endIndex - startIndex + match.capturedLength(); } setFormat(startIndex, commentLength, commentFormat); startIndex = text.indexOf(commentStartExpression, startIndex + commentLength); } } private: struct HighlightingRule { QRegularExpression pattern; QTextCharFormat format; }; QList<HighlightingRule> highlightingRules; QTextCharFormat commentFormat; //added QRegularExpression commentStartExpression; QRegularExpression commentEndExpression; }; Here's a test: [image: YLp82.gif]
  • Windows release build hangs during linking

    Unsolved build failed qml c++ engine
    14
    0 Votes
    14 Posts
    2k Views
    F
    @franzhelmut this process works on my Windows10 PC, with the 2015 compiler. On Windows11 I cannot install the 2015 compiler. The 2019 compiler seems to need more resources like heap space.
  • Gstreamer and scrollarea

    Unsolved
    2
    0 Votes
    2 Posts
    176 Views
    JoeCFDJ
    @micheal15 use GstGLVideoItem as sink to add to and display your pipeline. An example can be found here: https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/qt/qmlsink/main.qml
  • Error on using constexpr in qt 6.5

    Unsolved
    12
    0 Votes
    12 Posts
    754 Views
    sierdzioS
    @QtsCOde It's probably because of Intel compiler, then.
  • 0 Votes
    2 Posts
    357 Views
    sierdzioS
    @selvam Are you getting this in some IDE like Qt Creator or when building from command line? Looks like cmake can't find Qt. If you are building from terminal, you need to add this to point cmake in the right direction: cmake -DCMAKE_PREFIX_PATH=/path/to/qt/5.15.2/lib/cmake [other flags you are using....]
  • This topic is deleted!

    Locked Unsolved
    2
    0 Votes
    2 Posts
    9 Views
  • Multiple inheritance of QObject

    Unsolved
    7
    0 Votes
    7 Posts
    665 Views
    R
    @ChrisW67 im trying to inherit the Q_PROPERTIES from WindowProperty and use them in the MainWindow Isn't possible?
  • How to get the xy position of a text in a QTextEdit?

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    J
    This a new attempt, I'm not figuring out how to move the cursor to the correct position and also check if it doesn't already contains a ■ after the hex string: class HtmlHighlighter : public QSyntaxHighlighter { public: TextEdit* textEdit; QRegularExpression colorPattern = QRegularExpression("#[0-9A-Fa-f]{6}"); HtmlHighlighter(TextEdit* parent) : QSyntaxHighlighter(parent), textEdit(parent) {} protected: void highlightBlock(const QString& text) override { setCurrentBlockState(0); int startIndex = 0; if (previousBlockState() != 1) startIndex = text.indexOf(colorPattern); while (startIndex >= 0) { QRegularExpressionMatch match = colorPattern.match(text, startIndex); int endIndex = match.capturedStart(); int colorLength = 0; if (endIndex == -1) { setCurrentBlockState(1); colorLength = text.length() - startIndex; } else colorLength = endIndex - startIndex + match.capturedLength(); QString hexColor = match.captured(0); QColor color(hexColor); if (color.isValid()) { QTextCharFormat colorFormat; colorFormat.setForeground(color); setFormat(startIndex, colorLength, colorFormat); startIndex = text.indexOf(colorPattern, startIndex + colorLength); qDebug() << "startIndex: " << startIndex << "endIndex:" << endIndex; QTextCursor cursor(document()); cursor.setPosition(endIndex); cursor.insertHtml("<span style=\"color:" + color.name() + ";\">■</span>"); } } } };
  • How to achieve show/hide Qt Charts series by clicking legendmarker in Qt Quick

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    R
    Hi ynakane, I was trying to achieve the same thing and was unable to do it using the QML Legend Type. However, I am relatively new to Qt Quick (coming from a widgets background) so may not have been doing things correctly. The method I found that did work was creating a custom QML legend. I based this off the tutorial example: https://doc.qt.io/qt-6/qtcharts-qmlcustomlegend-example.html Change the purpose of the onSelected signal to instead change the series visibility. I also changed the signal so it passed the index instead of the series name. Then in you main QML code connect to the signal like this: CustomLegend { id: customLegend width: parent.width height: 50 anchors.top: chartView.bottom anchors.horizontalCenter: parent.horizontalCenter onSelected: { chartView.series(seriesIndex).visible = !chartView.series(seriesIndex).visible } } I don't know if this is the best method to use but it worked well for me.
  • Debugging application outside the qt Creator

    Unsolved
    2
    0 Votes
    2 Posts
    171 Views
    JonBJ
    @Ashish-Epsilon (I believe) MinGW comes with the standard gdb debugger, you can always use that from a Command Prompt, nothing to do with Creator. A debugger will only be of much use on "another system" if you have the sources there. I want to create debug log. This has nothing to do with running a debugger. You can put whatever output messages into your code, and send them to file if that is what you want. I don't know what "Lattepanda V1" is, or where qDebug() messages might go under such a system.
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    20 Views
  • QWaitCondition as a class member ?

    Unsolved
    3
    0 Votes
    3 Posts
    188 Views
    D
    The new instruction to create the worker object was malformed... Stupid me.
  • 0 Votes
    3 Posts
    338 Views
    MasterBLBM
    @ChrisW67 The area you're writing about is a separate widget, not placed in the layout. Well, I can't paste .ui files directly, but as xml code. This is how HEAD, and other parts are built (btw, can I make these text walls collapsible?):: <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MechPartWidget</class> <widget class="QWidget" name="MechPartWidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>320</width> <height>456</height> </rect> </property> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>3</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="TwoColoredGroupBox" name="groupBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>95</height> </size> </property> <property name="font"> <font> <pointsize>10</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="title"> <string>Mech part name</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> <property name="flat"> <bool>false</bool> </property> <property name="checkable"> <bool>false</bool> </property> <layout class="QGridLayout" name="gridLayout"> <property name="leftMargin"> <number>3</number> </property> <property name="topMargin"> <number>2</number> </property> <property name="rightMargin"> <number>3</number> </property> <property name="bottomMargin"> <number>1</number> </property> <property name="spacing"> <number>2</number> </property> <item row="0" column="0"> <widget class="ArmorTogglingLabel" name="labelFrontArmorText"> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Front armor. Click to switch between max <-> 0 armor</string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/ArmorFront.PNG</pixmap> </property> </widget> </item> <item row="0" column="1"> <widget class="MirroredSlider" name="frontArmorSlider"> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Slider for armor setup</string> </property> <property name="singleStep"> <number>5</number> </property> <property name="pageStep"> <number>5</number> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="tickPosition"> <enum>QSlider::TicksAbove</enum> </property> </widget> </item> <item row="0" column="2" colspan="2"> <widget class="QLabel" name="labelFrontArmor"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>18</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>18</width> <height>16777215</height> </size> </property> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Currently set front armor</string> </property> <property name="text"> <string>0</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="0" column="4"> <widget class="QLabel" name="labelMaxFrontArmor"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>26</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>26</width> <height>16777215</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Maximum front armor</string> </property> <property name="text"> <string>/100</string> </property> </widget> </item> <item row="1" column="0"> <widget class="ArmorTogglingLabel" name="labelRearArmorText"> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Rear armor. Click to switch between max <-> 0 armor</string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/ArmorRear.PNG</pixmap> </property> </widget> </item> <item row="1" column="1"> <widget class="MirroredSlider" name="rearArmorSlider"> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Slider for armor setup</string> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="tickPosition"> <enum>QSlider::TicksAbove</enum> </property> </widget> </item> <item row="1" column="2"> <widget class="QLabel" name="labelRearArmor"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>18</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>18</width> <height>16777215</height> </size> </property> <property name="font"> <font> <pointsize>8</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Currently set rear armor</string> </property> <property name="text"> <string>0</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="1" column="3" colspan="2"> <widget class="QLabel" name="labelMaxRearArmor"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>28</width> <height>0</height> </size> </property> <property name="maximumSize"> <size> <width>28</width> <height>16777215</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string>Maximum rear armor</string> </property> <property name="text"> <string>/100</string> </property> </widget> </item> <item row="2" column="0" colspan="5"> <layout class="QHBoxLayout" name="hardpointsLayout"> <property name="spacing"> <number>1</number> </property> <item> <spacer name="horizontalSpacer_3"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>0</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QLabel" name="labelBallisticHardpointsLeft"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>10</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="labelMaxBallisticHardpoints"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>/10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labelBallisticIcon"> <property name="minimumSize"> <size> <width>0</width> <height>26</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string><html><head/><body><p>Ballistic hardpoints</p></body></html></string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/BallisticHardpoint.png</pixmap> </property> </widget> </item> <item> <widget class="QLabel" name="labelEnergyHardpointsLeft"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>10</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="labelMaxEnergyHardpoints"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>/10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labelEnergyIcon"> <property name="enabled"> <bool>true</bool> </property> <property name="minimumSize"> <size> <width>0</width> <height>26</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string><html><head/><body><p>Energy hardpoints</p></body></html></string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/EnergyHardpoint.png</pixmap> </property> </widget> </item> <item> <widget class="QLabel" name="labelMissileHardpointsLeft"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>10</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="labelMaxMissileHardpoints"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>/10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labelMissileIcon"> <property name="minimumSize"> <size> <width>0</width> <height>26</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string><html><head/><body><p>Missile hardpoints</p></body></html></string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/MissileHardpoint.png</pixmap> </property> </widget> </item> <item> <widget class="QLabel" name="labelSupportHardpointsLeft"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>10</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="labelMaxSupportHardpoints"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>/10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labelSupportIcon"> <property name="minimumSize"> <size> <width>0</width> <height>26</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string><html><head/><body><p>Support hardpoints</p></body></html></string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/SupportHardpoint.png</pixmap> </property> </widget> </item> <item> <widget class="QLabel" name="labelOmniHardpointsLeft"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>10</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="labelMaxOmniHardpoints"> <property name="font"> <font> <pointsize>10</pointsize> <weight>50</weight> <bold>false</bold> </font> </property> <property name="text"> <string>/10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labelOmniIcon"> <property name="minimumSize"> <size> <width>0</width> <height>26</height> </size> </property> <property name="font"> <font> <weight>50</weight> <bold>false</bold> </font> </property> <property name="toolTip"> <string><html><head/><body><p>Omni-weapon hardpoints</p></body></html></string> </property> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap>GUI/OmniHardpoint.png</pixmap> </property> </widget> </item> <item> <spacer name="horizontalSpacer_4"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>0</width> <height>20</height> </size> </property> </spacer> </item> </layout> </item> </layout> </widget> </item> <item> <widget class="InventoryWidget" name="inventory" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="font"> <font> <pointsize>8</pointsize> </font> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="removeAllButton"> <property name="toolTip"> <string><html><head/><body><p>Removes all equipment from the location</p></body></html></string> </property> <property name="text"> <string>Strip stuff</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer_2"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> </layout> </item> </layout> </widget> <customwidgets> <customwidget> <class>InventoryWidget</class> <extends>QWidget</extends> <header>inventorywidget.h</header> <container>1</container> </customwidget> <customwidget> <class>MirroredSlider</class> <extends>QSlider</extends> <header>mirroredslider.h</header> </customwidget> <customwidget> <class>TwoColoredGroupBox</class> <extends>QGroupBox</extends> <header>twocoloredgroupbox.h</header> <container>1</container> </customwidget> <customwidget> <class>ArmorTogglingLabel</class> <extends>QLabel</extends> <header>armortogglinglabel.h</header> </customwidget> </customwidgets> <resources/> <connections/> </ui> And the main widget; it is too large to paste there on forum due to 32k chars limit - https://filetransfer.io/data-package/B5Nfcbd3#link
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Cross compile Qt with -xcb failed

    Unsolved
    9
    0 Votes
    9 Posts
    620 Views
    Q
    @JoeCFD said in Cross compile Qt with -xcb failed: GLIBC_2.27 I dare not upgrade to GLIBC_ 2.27, my glibcs is 2.23, and I am afraid it may be incompatible. Do you suggest upgrading
  • debugerror:copy a project(allfiles)from UBUNTU to Windows

    Unsolved
    3
    0 Votes
    3 Posts
    218 Views
    J.HilkJ
    @xsupport_wang Do NOT simply copy all files over and expect it to work. If this is a cross compile able project, or you want it to make one, only copy the source files over. qrc_xxx.cpp files like the one in the error console are auto generated files, in this case it was done by qmake. Delete it, let qmake generate it anew.