Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QListView with animated icons

    2
    0 Votes
    2 Posts
    4k Views
    S
    Hi, For the animated icon you can look into "QMovie":http://qt-project.org/doc/qt-4.8/qmovie.html#details, One approach can be to create your custom delegate to show a QLabel and listItems (text) for a single row and then create a QMovie from the animated icon(.gif) , then set the QMovie to QLabel. Eg @QMovie *movie = new QMovie(":Animations/icons/yourAnimatedIcon.gif"); QLabel *yourLabel = new QLabel(this); yourLabel->setMovie(movie); movie->start();@ Check if this works :) Note: Instead of using delegates you can easily use setItemWidget() for item widgets or setIndexWidget() for item views respectively for adding a lable to you item widget/view.
  • Custom Widget Problem

    7
    0 Votes
    7 Posts
    4k Views
    R
    Thanks Robot Herder...I'll do (more) reading. I really appreciate your help! Rich
  • Problems with connect() and some classes

    6
    0 Votes
    6 Posts
    3k Views
    B
    Thank you! It worked. [quote author="mlong" date="1335823162"]Make your gauges member variables so they are accessible throughout your class. Then create a slot to do that specific task. For instance: @ // slot: void setValuesOnTimeout() { gauge1->updateValues(30); gauge2->updateValues(30); } @ Then connect like: @ connect(timerRand,SIGNAL(timeout()),this,SLOT(setValuesOnTimeout())); @ Edit: Alternately... (I think this might work, but I haven't tried it...) Make the default values on your updateValues slots = 30. Then just connect: @ // These will use the default value of 30 connect(timerRand,SIGNAL(timeout()),gauge1,SLOT(updateValues())); connect(timerRand,SIGNAL(timeout()),gauge2,SLOT(updateValues())); @[/quote]
  • Someting wrong with currentPath on linux

    5
    0 Votes
    5 Posts
    2k Views
    P
    its work thx :)
  • [Solved] Apps using Plugins accessing static libs

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Quint32 to char []

    4
    0 Votes
    4 Posts
    3k Views
    G
    elephant... thank you.. working
  • About HTTP requests and PHP variables

    13
    0 Votes
    13 Posts
    6k Views
    G
    You need to create a new QNetworkRequest and use that on the existing QNAM. Make sure to connect to the signals of the newly returned QNetworkReply (or to those of the QNAM).
  • Downloading file from Url

    8
    0 Votes
    8 Posts
    17k Views
    T
    Are you actually calling QCoreApplication::exec somewhere? You need an event loop to process the network code. Without it you will create the file, set up everything and then just quit before Qt ever has a chance to receive/process data from the network by calling your slots.
  • QFSFileEngine::open: No file name specified

    8
    0 Votes
    8 Posts
    44k Views
    K
    Which dialog window do you mean? I guess you are talking about a different dialog window whose source you have not posted. This dialog window shall show the files on the ftp site? The ftp is a command driven approach communicating with a remote site. Whatever you are doing, you have to send command for everything separately. So, if you like to have updated information of the ftp server content, you have to send another command to give you the list. Please consult "QFtp":http://qt-project.org/doc/qt-4.8/qftp.html#list documentation and probably you should also see at standard ftp approaches. Because QFtp is just providing the interface to do the same. BTW "QFtp is deprecated":http://qt-project.org/doc/qt-4.8/qftp.html#details and you may want to have a look to QNetworkAccessManager and QNetworkReply.
  • 0 Votes
    4 Posts
    4k Views
    M
    Great! Be sure and edit the thread title to add [Solved]. Thanks!
  • What are the protocols supported by QNetworkAccessManager class

    2
    0 Votes
    2 Posts
    1k Views
    Z
    Yes I think it is just http, https, ftp, and file out of the box.
  • QSignalMapper and params

    3
    0 Votes
    3 Posts
    2k Views
    O
    Ok thanks, i will try.
  • 0 Votes
    4 Posts
    3k Views
    P
    I use this code currently for the filtering purpose emit signal from line edit as text changed and hide and show items in list view .
  • QT_SOURCE_TREE not defined

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved] Questions about QAbstractItemModel and Q(List/Tree)View

    17
    0 Votes
    17 Posts
    12k Views
    P
    Hi Andre, Any help now i am still struggling to get it done ? Thanks Prashant [quote author="Andre" date="1335508912"]Could you please re-phrase your question, this time using punctuation and separate sentences? I have a very hard time reading your question. Note that I have added some @ tags around your code to make that readable. Please do that yourself next time.[/quote]
  • Double the column in QSqlTableModel

    7
    0 Votes
    7 Posts
    2k Views
    P
    I make View , and QSqlRelationalTableModel::SetTable(This_View), and its work ;) its editable ;) thx for help
  • Custom widget and stylesheet

    4
    0 Votes
    4 Posts
    7k Views
    E
    Thanks a lot, it is a really brilliant idea!
  • One a question...

    3
    0 Votes
    3 Posts
    2k Views
    R
    you might also want to have a look at "eventFilters":http://qt-project.org/doc/qt-4.8/qobject.html#eventFilter I recently wrote a keygrabber that logs all keyboard input while my application has focus. If your app doesn't have focus (if it's in the background), you'll have a hard time getting keyboard input - depending on the OS you're developing for, it might even be impossible...
  • 0 Votes
    3 Posts
    2k Views
    N
    Thank you,I understand.
  • SBSv2 error?

    2
    0 Votes
    2 Posts
    1k Views
    G
    hi everybody. i am getting these two errors in my project. Starting: “” qtcreator_ctrlc_stub: Command line failed: “” 00:08:39: The process “” crashed. Error while building project new2 (target: Symbian Device) When executing build step ‘Custom Process Step’ please help me out on how to solve these two errors or what is the reason for these errors ?