Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • How to keep up with new macOs

    Solved
    8
    0 Votes
    8 Posts
    424 Views
    P
    Well, the solution came earlier than I expected. My old iMac (2007!) had a problem with its graphics, and so I started with a clean MacBook Pro with Mojave pre-installed. I downloaded the latest versions of Xcode (11.3.1) and Qt Creator 4.12.2 (Qt 5.14.2). I rebuild the OpenCV library and successfully rebuild my application. There were some small 'bugs', especially layout problems to solve. Not too bad. But this was all I asked for !
  • [QAudioOuput/QAudioInput] Noise sound when send audio to the network

    Unsolved
    5
    0 Votes
    5 Posts
    438 Views
    StyleoshinS
    I will try that with Opus Audio or QAudioDecoder.
  • QNetworkAccessManager / QNetworkRequest gets different response than CURL

    Solved
    5
    0 Votes
    5 Posts
    427 Views
    Christian EhrlicherC
    @QtCoder87 said in QNetworkAccessManager / QNetworkRequest gets different response than CURL: I should move the Download stuff into a new Thread. synchronous Download is more comfortable in this situation. This contradicts itself ...
  • How to access IO port in QT?

    Unsolved io access port memory access
    11
    0 Votes
    11 Posts
    3k Views
    K
    @aowoo said in How to access IO port in QT?: directly read and write to the I/O port AFAIK, It's impossible for Windows && Linux: On Windows you need in a special driver (It is not enough to use just some DLL's, because you need in a driver. Most likelly, that inpout32.dll has a pre-compiled driver in own resources and loads this driver in runtime). On Linux you need in a special permissions too.
  • How to hide MaximizeButton of QMainWindow?

    Solved
    8
    0 Votes
    8 Posts
    10k Views
    S
    this helped me: Form.setMaximumSize(QtCore.QSize(width, height)) class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(328, 212) Form.setMaximumSize(QtCore.QSize(352, 189))
  • Qnetwork Manager show available SSID's

    Unsolved
    1
    0 Votes
    1 Posts
    423 Views
    No one has replied
  • 0 Votes
    9 Posts
    1k Views
    SGaistS
    Great ! Since you have it working now please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so other forum users may know a solution has been found :-)
  • Centering in a layout

    Solved
    18
    0 Votes
    18 Posts
    9k Views
    JonBJ
    I have had a play this morning.... @Bonnie I tried out your suggestion. It seems to work, perfectly! You get the bonus points for providing what seems like the correct solution. However, I cannot rely on not altering the UI in Designer, intentionally or unintentionally, over time, and finding it messes up the two-widgets-in-one-cell :( @mrjj I have gone for a solution related to yours. But changed to be a 3-column QGridLayout (didn't seem to work right with a QHboxLayout), with layoutColumnStretch 2,6,2, so 20%-60%-20%, like: <layout class="QGridLayout" name="gridLayout_2" columnstretch="2,6,2"> <item row="0" column="0"> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </spacer> </item> <item row="0" column="1" alignment="Qt::AlignHCenter"> <widget class="QLabel" name="label"> </widget> </item> <item row="0" column="2" alignment="Qt::AlignRight"> <widget class="QCheckBox" name="cbLockMode"> </widget> </item> </layout> It may be this just works given the widths of my particular label & checkbox, but I have tried stretching the container and things seem to resize maintaining the label at approximately in the center of the whole. Thank you both, this will have to do as a reasonable compromise.
  • 2 thread send data To serial port

    Unsolved
    6
    0 Votes
    6 Posts
    591 Views
    JKSHJ
    @bassem84 said in 2 thread send data To serial port: I try to use qtimer but he dont' work correctly and i dont now whay Start by writing very simple code. First, try to use a QTimer to print a message to your console every 500ms. If you can't get it to work, post your code here like @jsulm said. Notes: The code that you originally posted is quite complex. It is easier to help you when you post simple code. Threads are difficult to use correctly in C++. I recommend that beginners stay away from them.
  • Clearing selection in three view & next selection not executed issues...

    Unsolved
    6
    0 Votes
    6 Posts
    557 Views
    D
    @Christian-Ehrlicher said in Clearing selection in three view & next selection not executed issues...: @Dariusz said in Clearing selection in three view & next selection not executed issues...: Bump, can any1 help ? Since the selectionChanged signal is called also when you clear the selection you created an endless loop I would guess. Put some debug output when you call clearSelection() to see if I'm correct. @JonB: yes, selection and current index are two independent things Hey Hmmmmmmmmmmmmmmmmmmmmmmmmm I think I might see the issues. Clearing selection on view2 emits signal of selectionChanged for view1 o.O ok I think I got it o.o
  • Need some help cross compiling (and linking)

    Unsolved
    2
    0 Votes
    2 Posts
    344 Views
    R
    For cross compiling...looks like the /usr/lib/libQt5Svg.a would be a static library...and I have the .so shared libraries...I don't necessarily want to build static...is there something I'm doing in my qmake profile that's making this static linked?
  • 0 Votes
    1 Posts
    241 Views
    No one has replied
  • Layout issues within GraphicsItem

    Unsolved
    7
    0 Votes
    7 Posts
    442 Views
    Pl45m4P
    @szyq Just realized, I was mixing QSplitter and QSpacer... Unfortunately this wouldnt change anything, because you cant use QSpacerItems in QGraphicsLinearLayout since they are no QGraphicsLayoutItems
  • QWizardPage::nextId called way to often

    Solved
    5
    0 Votes
    5 Posts
    372 Views
    HoMaH
    @JonB that's a good thought ... Thanks. This would explain at least one of the calls :)
  • How disable render optimization base on camera distance in Qt3D

    Unsolved
    1
    0 Votes
    1 Posts
    141 Views
    No one has replied
  • Problem in adding Qactions to frame.

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    SGaistS
    Hi, QAction has no visual representation. Typically QToolBar will create QToolButtons out of the information provided by QAction. Adding QAction objects to a widget simply allows to trigger their associated shortcut when said widget has focus.
  • Dead space at bottom of QToolBar

    Unsolved
    4
    0 Votes
    4 Posts
    317 Views
    PerdrixP
    I've come to the conclusion that this was just going round in circles as setting the stylesheet changed the parameters for adjustSize(). Problem is that if I called adjustSize after setting the style, I lost the nice rounded corners even though the style asks for them. So I've just removed the styling of the ToolButtons and accepted the version that uses the translucent blue/grey rectangles as hints, which is close enough to what the original Windows custom control looked like. Thanks again for your help @Bonnie
  • i need helt to build The Plugin QMYSQL

    Locked Unsolved
    2
    0 Votes
    2 Posts
    178 Views
    Christian EhrlicherC
    Dupe of https://forum.qt.io/topic/118410/qsqldatabase-available-drivers-qsqlite-qodbc-qodbc3-qpsql-qpsql7-i-need-qmysql/17 - closed
  • QTableView reduce row height not working

    Solved qtableview row heigth
    4
    0 Votes
    4 Posts
    1k Views
    gde23G
    thanks a lot, that did the trick :)
  • PySide2 set base dir in QFileDialog.getOpenFileNames()

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    Please_Help_me_DP
    @JonB yes, thank you for the hint!