Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • C++ project use qml via qrc and doesn't work

    7
    0 Votes
    7 Posts
    3k Views
    M
    One way to prevent that from happening again is adding @ Q_ASSERT(QFile(<resource path>).exists()); @ before setting the URL source. Just make sure to use the same path later :-)
  • Will Qt 5 support X11 on embedded linux ?

    7
    0 Votes
    7 Posts
    3k Views
    S
    I don't think there's a difference - if your embedded linux distribution includes the required libraries then yes.
  • How to modify the behaviour for "?" button on the window title bar?

    2
    0 Votes
    2 Posts
    1k Views
    R
    it activates the What's This? mode... refer to QWhatsThis documentations this i don't know...but it will probably involve reimplementing a lot of things
  • 0 Votes
    11 Posts
    6k Views
    A
    I'll make sure that somebody who can will, then. Thanks for trying! Edit: Weird, I could comment myself, and I think you definiately should have been able to. It would be weird if you cannot actually give the information asked for because of the status "More information needed". Are you sure you were logged in?
  • 0 Votes
    5 Posts
    7k Views
    A
    There are two* classes of SQL commands: DML: Data Manipulation Language is a set of commands that allows you to query and manipulate the data in your database. DDL: Data Definition Language is a set of commands that allows to you manipulate the structure of your database: add tables, manipulate indices, etc. Qt unfortunately only provides any level of support for the first, not for the second. It is possible to add this, but it is complicated. I wrote an extended set of Qt database drivers for MySql and for MS Access once that adds these features, as I used them a lot. These drivers added a lot of options to QSqlDriver::sqlStatement, as well as some other features. If you're interested: the code is available under GPL.
  • Where can I download Qt lighthouse from ?

    6
    0 Votes
    6 Posts
    2k Views
    A
    Dear Andre, perhaps you can send me some links to the videos you talking about (beside the 2 videos from dev days 2010 and 2011 because this is just not enough). That can be more helpful...
  • ItemView (QTreeView and QTableView)

    6
    0 Votes
    6 Posts
    4k Views
    A
    Note that it won't work out of the box, as the model you're trying to transpose is (part of a) tree, not a table. So, you'll need to adapt the proxy to basically also get a setRootIndex, and only transpose anything under that index.
  • ItemView (QHeaderView)

    5
    0 Votes
    5 Posts
    3k Views
    I
    Andre, Thanx this largely works
  • Qt Creator and Mingw

    5
    0 Votes
    5 Posts
    2k Views
    T
    I'm still a newbie but think I just fixed this one. In Windows, select Start, Update Qt SDK. Select Package Manager, Next. Under Qt SDK, expand the nested items "Development Tools", "Desktop Qt", "Qt <version> (Desktop)". Check the box for "Desktop Qt <version> - MinGW" to install the MinGW compiler for desktop. Select "Next" as needed to finish the install process.
  • [SOLVED] QString find all occurrences by RegExp

    3
    0 Votes
    3 Posts
    4k Views
    T
    Thanks, tass. It should be that I was finding!
  • Drop on QMdiArea

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • ContextMenu in QTreeView

    5
    0 Votes
    5 Posts
    10k Views
    P
    Now i have next problem, if i dont have acces to ContextMenu Slot how i can disable/enable action in this menu dependent on what clicken(file/dir/nothing) ??? eny help ??
  • What is the difference between QWS and lighthouse ?

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    AFAIK, yes (that how Necessitas was started, no?), but it's not build-in there. This is way out of my area of expertise, you will have to ask other people for concrete answers.
  • How the different licenses work with different libraries

    2
    0 Votes
    2 Posts
    983 Views
    A
    Please search the forum first. These issues have been discussed many times before. Always keep in min that you should assume people on this forum are NOT lawyers and are not qualified to give legal advice. That includes me.
  • 0 Votes
    4 Posts
    2k Views
    sierdzioS
    No, AFAIK, in Qt4 it's still QWS.
  • When I download Qt libraries 4.8.2 for embedded Linux. Is it QWS or QPA ?

    2
    0 Votes
    2 Posts
    2k Views
    T
    Hi, ~aabc! It should be with QWS. But I am not sure. I found this information on "Gitorious":http://qt.gitorious.org/qt/qt/blobs/4.8/dist/changes-4.8.2#line173 As far as I understood, if in Qt 4.8.2 changelog in RTOS listed QWS, it should be QWS instead of QPA, but I am not sure.
  • How to wait for 'deleteLater'?

    7
    0 Votes
    7 Posts
    11k Views
    D
    [quote author="Andre" date="1340784921"]Would it be an option to use the QObject::destroyed() signal? By the time that one is emitted, the widget parts of the object have already been destroyed.[/quote] finally I found solution to wait for destroy: @widget->deleteLater(); widget->exec();@ unfortunately, delete qApp; still corrupts memory: Message: First-chance exception at 0x133a79b2 (QtGuid4.dll) in ustation.exe: 0xC0000005: Access violation reading location 0x0000000c. (Call stack:) @> QtGuid4.dll!qThreadStorage_deleteData<QFontCache>(void * d=0x141f4010, QFontCache * * __formal=0x00000000) Line 97 + 0x22 bytes C++ QtGuid4.dll!QThreadStorage<QFontCache *>::deleteData(void * x=0x141f4010) Line 140 + 0xe bytes C++ QtCored4.dll!QThreadStorageData::set(void * p=0x00000000) Line 165 + 0x7 bytes C++ QtGuid4.dll!qThreadStorage_setLocalData<QFontCache>(QThreadStorageData & d={...}, QFontCache * * t=0x0028e35c) Line 92 + 0x12 bytes C++ QtGuid4.dll!QThreadStorage<QFontCache *>::setLocalData(QFontCache * t=0x00000000) Line 155 + 0x14 bytes C++ QtGuid4.dll!QFontCache::cleanup() Line 2804 C++ QtGuid4.dll!QFont::cleanup() Line 111 C++@ What could I try to find a source of this issue? I have put a breakpoint into QThreadStorageData::set() but it never gets called during Widget destruction, so I can not identify what is going wrong. Could you please suggest where to look (in QT source) to find source of this issue? Thanks.
  • Strange behavior QSqlQuery and "Driver Not Loaded Error"

    9
    0 Votes
    9 Posts
    10k Views
    L
    I'm quite sorry, but I'm having a hard time understanding you; you will find a sketch attached how such a task could be done in principle and it's up to you to fit it to your concrete requirement. @ bool importFile(const QString &fileName) { QFileInfo fileInfo(fileName); if(fileInfo.exists(&#41; == false&#41; return false; QSqlQuery query; query.prepare("INSERT INTO " + QLocale(QLocale::English&#41;.toString(fileInfo.lastModified().addDays(-1), "MMMM").toLower() + "_ama (answer, ..., offset) VALUES (?, ..., ?)"); do { readNextRecordFromFile&#40;&#41;; query.addBindValue(readNextValueFromRecord(&#41;&#41;; ... query.addBindValue(readNextValueFromRecord(&#41;&#41;; } while ((query.exec&#40;&#41; == true&#41; && (lastRecordRead(&#41; == false)&#41;; return ((query.isActive() == true) && (lastRecordRead(&#41; == true)); } @ Brain to terminal. Exemplary. And make sure you've had a good read on C++, design principles, Qt and the Qt SQL module.
  • Synchronization of mp3 tracks on Qt

    2
    0 Votes
    2 Posts
    1k Views
    T
    Hi, ~Uncannytable. Welcome to fun Qt Developer Network! I will quote user who answer your question on another "resource":http://forum.codecall.net/topic/70523-synchronyzing-mp3-tracks-on-qt/: [quote author="Programming God" date="1340740020"]So you are creating instance of Phonon:MediaObject for each mp3 tracks in a song? I mean, as example, if you have 3 mp3 tracks for 3 instruments in a song, you are creating 3 instances of Phonon:MediaObject for playing 3 different tracks? I think you are doing this and that's why the synchronization term is here, right? Now how you are trying to do the synchronization? Or, you are not doing at all to keep the tracks synchronized? AFAIK, Mobility will not run on PC?[/quote]
  • Debugger cannot evaluate content of class

    4
    0 Votes
    4 Posts
    2k Views
    T
    [quote author="rooney" date="1340787297"]Solved the problem!! On Debian Squeeze GDB 7.01 is installed but Qt Creator requires Python enabled GDB 7.4. So I followed the instructions on http://qt-project.org/wiki/QtCreatorBuildGdb. [/quote] Good job!