Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Cannot create children for a parent that is in a different thread.

    Unsolved
    7
    0 Votes
    7 Posts
    6k Views
    VRoninV
    @Alexanov You still have to remember to delete it though. There are 3 ways: connect some signal (QThread::finished?) to the deleteLater slot delete it manually in QThread's destructor use smart pointers. I'd go for the 3rd, change QUdpSocket *udpSocket; to std::unique_ptr<QUdpSocket> udpSocket;
  • Why does designer automatically add dynamic properties?

    Unsolved
    4
    0 Votes
    4 Posts
    967 Views
    mrjjM
    hi A.Michael I will try to add some protected member funcs into one of my designer plugins and see if I can replicate it. Currently I have no idea why they would become props. Its almost magical :)
  • qt and arduino

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    E
    @jsulm "Do you want to run this Qt app on Arduino (which is not possible as Arduino is just a micro-controller without any OS)?" That's not quite correct as Arduino is just a brand/company name that makes boards, SW and other stuff but not MCU's. In many cases when someone is saying "on arduino" it is correct to assume one is talking about ATmega328. But there are other boardsArduino company is making that can run windows Arduino - Intel Galileo. Just my 2 cents :)
  • Multhearding using PyQt5

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    What if you call quit in place of terminate ?
  • QPrinter margins

    Solved
    12
    1 Votes
    12 Posts
    7k Views
    mrjjM
    Ahh super it was in points, missed that.
  • apply patch error

    Unsolved
    2
    0 Votes
    2 Posts
    554 Views
    SGaistS
    Hi, AFAIK, these patches are for Qt 5. You have to go through them and port them to Qt 4.
  • QNetworkReply / QNAM - Operation Canceled Error & Proxy Timeout Error

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, Based on the errors you got, did you check that your proxy is working properly ?
  • FindChildren returning too many objects

    Solved findchildren castobject
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    Hi, Out of curiosity, why do you need to use findChildren within your widget ?
  • Regarding the Loading the qtvirtualkeyboardplugin to the sample app created

    Unsolved
    13
    1 Votes
    13 Posts
    4k Views
    SGaistS
    Qt uses a known folder structure for its plugins so for example, input related plugins should be put in platforminputcontexts. What is the rational behind putting that plugin in your user desktop folder ?
  • How to use libpsi Idle class

    Unsolved
    2
    0 Votes
    2 Posts
    775 Views
    mrjjM
    Hi Do you mean this class https://github.com/psi-im/libpsi/blob/master/tools/idle/idle.h It seems to check if cursor have been moved. To use it, include the file ( or use the .pri file) and hook up signal void secondsIdle(int); to your own slot then call start on the object. (did not try but seems very straightforward)
  • uniCode 0x1D11E to TextLabel

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    hskoglundH
    Hi, I made an example, using 2 test labels: uint a[] = {'a',0x1F55A,'b',0x1F6F3,'c',0x1F6F2,'d',0x1D11E,'e',0}; QString s = QString::fromUcs4(a); ui->testLabel->setText(s); ui->testLabel2->setText(s); Here's the result on my Windows PC: [image: Unicode.png] Why is it different? The second label (with all the squares) uses the "Times New Roman" font. Most fonts are like this, very few Unicode characters exist in them (instead just squares). To be able to see all the symbols, for the first label I use the "Symbola" font, which is one recommended by the Unicode consortium. Download it here. Also, note the 0x1D11E is symbol drawn 2 places to the left, that's why I added 3 spaces to my first example above. P.S. Also see xkcd's view on Unicode: https://xkcd.com/1726/
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • File is not open with network file path in NAS file System

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    mrjjM
    Hi Are you sure that a NAS box will support this system? You say it works locally in windows 10, so whatever that syntax is ":DeveloperData:$DATA" then why would a NAS box understand it ?
  • QPieSeries / QChartView Size

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    Marc A. SmithM
    I figured it out... adding "lvm_chart_view->setMinimumHeight(200);" appears to have restored the size to about what it was originally. And a correction on versions, we're using 5.9 now (not 5.8). Not sure what default sizing behavior changed between versions, but setting the height in the not a big deal. --Marc
  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    196 Views
  • Enable a button after it has been disabled

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    ?
    What @mrjj said. You can't press a disabled button, that's the whole point of disabling it.
  • how to fix " Missing argument to '-L' " error ?

    Unsolved
    33
    0 Votes
    33 Posts
    13k Views
    AhtiA
    @koahnig Look again at the compile output : [image: 4e6b2ace-c8c9-46a6-b831-77c14cf0035d.png]
  • uniCode 0x1D11E

    Locked Unsolved
    3
    0 Votes
    3 Posts
    690 Views
    K
    @JoWe There is no need to start a new post every time. Please continue your started thread there Closing this one.
  • Designer not working with imported project

    Unsolved
    2
    0 Votes
    2 Posts
    490 Views
    mrjjM
    Hi Can you maybe show your pro file? Normally there is no issues sharing between computers You can delete any .user file and select compiler kit again.
  • Why can't I find " Maintenance Tool " in Qt5 for Ubuntu 16.04 LTs ?

    Unsolved
    3
    0 Votes
    3 Posts
    4k Views
    E
    @kishy-nivas13 Linux distros handle Qt packages differently, they are packaged in the distro's own format and are usually somewhat customized for that distro. If you want to develop with Qt it may be preferable to download the online installer and install an independent Qt version with it, and you will get the maintenance tool, too. It's OK to have both distro's own Qt and manually installed Qt at the same time, you just have to configure it in Creator. At least in the latest Kubuntu the online installer put the maintenance tool and Creator into the Development section of the app launcher desktop menu.